#ifndef __LINKQUEUE_H__
#define __LINKQUEUE_H__
#include "DoubleLinklist.hpp"

template<typename T>
class LinkQueue:private DoubleLinklist<T>
{
public:
    LinkQueue():DoubleLinklist<T>(){};
    ~LinkQueue(){};
    void Push(const T&element)
    {
        DoubleLinklist<T>::InsertTail(element);
    }
    void Pop()
    {
        DoubleLinklist<T>::RemoveByIndex(0);
    }
    T& GetFornt()
    {return DoubleLinklist<T>::Gethead();}
    bool IsEmpty(){return DoubleLinklist<T>::Size()==0;}


private:
    

};







#endif